<h2><?php echo $this->title; ?></h2>
<p>Welkom <?php echo $this->user; ?>!</p>
<hr />
<?php if($this->courses != null) {?>  
        <a href ="<?php echo $this->baseUrl(); ?>" id="">
                    My Courses
        </a>
        <?php foreach ($this->courses as $course) { ?>        
                <ul>
                    <li>
                        <a href ="<?php echo $this->baseUrl(); ?>" id="">
                            <?php echo $course->Name?>   
                        </a>
                        <a href="<?php echo $this->baseUrl(); ?>/index/delete/id/<?php echo $course->id ?>"><img src="<?php echo $this->baseUrl(); ?>/styles/assets/cross.png" /></a>
                    </li>
                    <li>Books
                        <ul>
                        <?php foreach ($course->Books as $book) { ?>
                        <li>
                            <a href ="<?php echo $this->baseUrl(); ?>/book/view/id/<?php echo $book->Book->Id ?>" id="">
                                <?php echo $book->Book->Title?>:
                                <?php echo $book->Book->Subtitle?>
                            </a> 
                        </li>                               
                        <?php } ?>  
                        </ul>
                    </li>
                </ul>
        <?php } ?>
<?php } ?>
</div>
